#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
void strcp(char* arr, int left, int right)
{
	if (left < right)
	{
		char temp = arr[left];
		arr[left] = arr[right];
		arr[right] = temp;
		strcp(arr, left + 1, right - 1);
	}
}
int main()
{
	char arr[10000] = { 0 };
	gets(arr);
	int left = 0;
	int right = strlen(arr)-1;
	strcp(arr,left,right);
	printf("%s ",arr);
	return 0;
}